<template>
    <div class="user-profile-container">
      <el-card shadow="hover" class="user-profile-card">
        <el-form label-width="80px" label-position="top">
          <!-- 企业logo上传 -->
          <el-form-item label="企业logo" class="form-item-logo">
            <el-form class="avatar-uploader" >
              <img v-if="param.imgSrc" :src="param.imgSrc"/>
              <div v-else class="default-logo">
                <i class="logo-icon"></i>
              </div>
            </el-form>
          </el-form-item>
  
          <!-- 企业信息 -->
          <el-form-item label="企业名称">
            <el-input value="TMS专业物流公司" disabled></el-input>
          </el-form-item>
  
          <el-form-item label="企业编码">
            <el-input value="woniu666" disabled></el-input>
          </el-form-item>
  
          <el-form-item label="联系人姓名">
            <el-input value="张晨曦" disabled></el-input>
          </el-form-item>
  
          <el-form-item label="联系人电话">
            <el-input value="111-222-333" disabled></el-input>
          </el-form-item>
  
          <el-form-item label="公司地址">
            <el-input value="南京" disabled></el-input>
          </el-form-item>
  
          <el-form-item label="注册日期">
            <el-input value="2024-10-10" disabled></el-input>
          </el-form-item>
        </el-form>
      </el-card>
    </div>
  </template>
  
  <script>
  export default {
    data() {
      return {
        param: {}
      };
    },
    methods: {
  
    },
    created() {
  
    }
  };
  </script>
  
  <style scoped>
  .user-profile-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 80vw; /* 减少宽度 */
    padding: 20px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
  }
  
  .user-profile-card {
    width: 100%;
    max-width: 1200px; /* 调整卡片宽度 */
    padding: 20px; /* 增加内边距 */
    border-radius: 12px; /* 增大圆角 */
    background-color: #ffffff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
  }
  
  .user-profile-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  }
  
  .el-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 两列布局 */
    gap: 20px; /* 表单项之间的间距 */
  }
  
  .el-form-item {
    margin-bottom: 12px; /* 缩小表单项之间的间距 */
  }
  
  .avatar-uploader {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1px dashed #d9d9d9;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    cursor: pointer;
    overflow: hidden;
    background-color: #f0f0f0;
  }
  
  .default-logo {
    width: 80px; /* 更小的宽度 */
    height: 80px; /* 更小的高度 */
    background-image: url('./css/logo.svg');
    background-size: cover;
    background-position: center;
  }
  
  .el-input {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 10px;
  }
  
  .el-input[disabled] {
    background-color: #fafafa;
    color: #999;
    cursor: not-allowed;
  }
  
  .form-item-logo {
    grid-column: span 2; /* 让logo独占一行 */
    text-align: center;
  }
  
  </style>
  